<div class="widget-box">
<div class="widget-title">
    <span class="icon"><i class="icon-plus"></i></span>
    <h5>Clientes</h5>
</div>
<div class="widget-content">
<?php
//atributos form datos
$atrFrm = array('class' => 'form-horizontal', 'id' => 'frm_config_gral');
$atrInpName = array('class' => 'input-xxlarge','type' => 'text','name' =>'nomb_clie','value' => set_value('nomb_clie'),);
$atrInpApe = array('class' => 'input-xxlarge','type' => 'text','name' =>'apel_clie','value' => set_value('apel_clie'),);
$atrInpDni = array('class' => 'input-xxlarge','type' => 'text','name' =>'dni_clie','value' => set_value('dni_clie'),);
$atrInpTel = array('class' => 'input-xxlarge','type' => 'text','name' =>'telf_clie','value' => set_value('telf_clie'),);
$atrInpEmail = array('class' => 'input-xxlarge','type' => 'text','name' =>'email_clie','value' => set_value('email_clie'),);
$atrInpCuit = array('class' => 'input-xxlarge','type' => 'text','name' =>'cuit_clie','value' => set_value('cuit_clie'),);
$atrInpDire = array('class' => 'input-xxlarge','type' => 'text','name' =>'dire_clie','value' => set_value('dire_clie'),);
$atrInpDatePicker = array('id' => 'fecha_ingreso','type' => 'text','name' =>'fecha_ingreso','readonly' => 'readonly','value' => $hoy);
$atrInpCode = array('id' => 'codigo_clie','type' => 'text','name' =>'codigo_clie','readonly' => 'readonly','value' => '' );       
$atributos = array( 'class' => 'control-label');
$atrBtn = array('class' => 'btn btn-inverse','type' => 'submit');
//formulario de datos
echo form_open('clientes/insert_clie',$atrFrm);
echo form_fieldset('Agregar Nuevo Cliente');
?>
<p class="muted">Datos Internos</p>
    <div class="control-group">
        <?php echo form_label('Fecha de ingreso','',$atributos);?>
        <div class="controls">
             <?php echo form_input($atrInpDatePicker); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Tipo de Cliente','',$atributos);?>
        <div class="controls">
            <select class="" name="id_tclie" id="tcliente">
                <option value="0" selected>Seleccionar cliente...</option>
                  <?php foreach($tcliente as $fila){ ?>
                  <option value="<?php echo $fila->id_tclie ?>"> <?php echo $fila->desc_tclie ?></option>
                  <?php }?>        
            </select> 
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Código','',$atributos);?>
        <div class="controls">
             <?php echo form_input($atrInpCode); ?>
             <?php echo form_error('codigo_clie'); ?>
        </div>
    </div>    
<p class="muted">Datos Personales</p>
    <div class="control-group">
          <?php echo form_label('Nombre','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpName); ?>
            <?php echo form_error('nomb_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Apellido','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpApe); ?>
            <?php echo form_error('apel_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Número Dni/CI/LC','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpDni); ?>
            <?php echo form_error('dni_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Teléfono','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpTel); ?>
            <?php echo form_error('telf_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Email','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpEmail); ?>
            <?php echo form_error('email_clie'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Cuit / Cuil','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpCuit); ?>
        </div>
    </div>
<p class="muted">Datos de Ubicación</p>
    <div class="control-group">
          <?php echo form_label('Dirección','',$atributos);?>
        <div class="controls">
            <?php echo form_input($atrInpDire); ?>
            <?php echo form_error('dire_clie'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Pais','',$atributos);?>
        <div class="controls">
            <select class="" name="pais" id="pais">
                <option value="0" selected>Seleccionar pais...</option>
                  <?php foreach($pais as $fila){ ?>
                  <option value="<?php echo $fila->id_pais ?>"> <?php echo $fila->nomb_pais ?></option>
                  <?php }?>        
            </select>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Provincia','',$atributos);?>
        <div class="controls">
            <select class="" name="provincia" id="provincia">
                <option value=""></option>
            </select>
            <?php echo form_error('provincia'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Localidad','',$atributos);?>
        <div class="controls">
            <select class="" name="localidad" id="localidad">
                <option value=""></option>
            </select>
            <?php echo form_error('localidad'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Zona','',$atributos);?>
        <div class="controls">
            <select class="" name="id_zona" id="zona">
                <option value=""></option>
            </select>
            <?php echo form_error('id_zona'); ?>
        </div>
    </div>
<?php
echo form_button($atrBtn,'Agregar Cliente');
echo form_fieldset_close(); 
echo form_close();
?>
</div>
</div>

